package com.todod.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.todod.dto.RoleDto;
import com.todod.entity.QueryEntry;
import com.todod.model.Role;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author gsh
 * @since 2020-11-23
 */
public interface IRoleService extends IService<Role> {

	IPage<RoleDto> getList(QueryEntry queryEntry);

	void save(Long userId, Role role);

	Role getByCode(String code);

	List<Role> getByCompanyId(Long departid);

}
